home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / util / misc / PowerInstaller.lha / PowerInstaller / DemoScripts / execute.script < prev    next >
Encoding:
Text File  |  1998-09-23  |  1.0 KB  |  56 lines

  1. BeginGUI "Execute Demo"
  2.  
  3.   Message "When you'll press the Next button"
  4.   Message "PowerInstaller will create a file"
  5.   Message "in ram: called 'dirs'."
  6.   Message ""
  7.   Message "This file will be created using"
  8.   Message "this AmigaDOS string: "
  9.   Message ""
  10.   Message "    c:dir SYS: >ram:dirs"
  11.   
  12.  
  13. EndGUI
  14.  
  15. BeginGUI "Executing..."
  16.  
  17.   Execute "c:dir SYS: >ram:dirs"
  18.  
  19. EndGUI
  20.  
  21. BeginGUI "Done!"
  22.   
  23.   Message "AmigaDOS Command launched."
  24.   Message "The call Result is: $Result"
  25.  
  26.   Gadgets NOPREV
  27. EndGUI
  28.  
  29. BeginGUI "Now We Will Fail..."
  30.  
  31.   Message "Now, we'll try another AmigaDOS line"
  32.   Message "that will fail, simply because the"
  33.   Message "command does not exists."
  34.   Message ""
  35.   Message "The AmigaDOS string is:"
  36.   Message ""
  37.   Message "   c:xyzkk SYS: >ram:wrong"
  38. EndGUI
  39.  
  40. BeginGUI "Executing Failure..."
  41.  
  42.   Execute "c:xyzkk SYS: >ram:wrong"
  43.  
  44. EndGUI
  45.  
  46. BeginGUI "Wrong Command Done!"
  47.   Message "AmigaDOS Command launched."
  48.   Message "The call Result is: $Result"
  49.  
  50.   Gadgets NOPREV NOCANCEL
  51.  
  52.   Set Gadget_Next "Finish!"
  53. EndGUI
  54.  
  55.  
  56.